using System;

namespace Genko.Model
{
	public class ValidationEventArgs
	{
		private Member sourceMember = null;
		private string message = null;
		private ValidationMessageType messageType;

		public ValidationEventArgs(Member source, string message)
		{
			this.sourceMember = source;
			this.message = message;
		}

		public ValidationEventArgs(Member source, string message, ValidationMessageType messageType)
		{
			this.sourceMember = source;
			this.message = message;
			this.messageType = messageType;
		}

		public virtual Member SourceMember
		{
			get
			{
				return this.sourceMember;
			}
		}

		public virtual string Message
		{
			get
			{
				return this.message;
			}
		}

		public virtual ValidationMessageType MessageType
		{
			get
			{
				return this.messageType;
			}
		}
	}
}
